﻿<%@ Page Title="" Language="C#" MasterPageFile="~/shop/MasterPage.master" AutoEventWireup="true" CodeFile="NewsDetail.aspx.cs" Inherits="shop_NewsDetail" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .auto-style8 {
            margin-left: 40px;
        }
        .auto-style9 {
            margin-left: 64px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:Button ID="Button1" runat="server" CssClass="auto-style9" OnClick="Button1_Click" Text="返回通知查询页面" Width="176px" />
    <asp:SqlDataSource ID="sdsNewsDetail" runat="server" ConnectionString="<%$ ConnectionStrings:keshe2ConnectionString %>" ProviderName="<%$ ConnectionStrings:keshe2ConnectionString.ProviderName %>" SelectCommand="SELECT 编号,标题,内容,时间,图片 FROM 通知 WHERE 编号=@编号" DeleteCommand="SELECT 编号,标题,内容,时间,图片 FROM 通知 WHERE 编号=@编号">
        <DeleteParameters>
            <asp:QueryStringParameter Name="编号" QueryStringField="编号" />
        </DeleteParameters>
        <SelectParameters>
            <asp:QueryStringParameter Name="编号" QueryStringField="编号" />
        </SelectParameters>
    </asp:SqlDataSource>
    <asp:FormView ID="FormView1" runat="server" DataSourceID="sdsNewsDetail">
        <ItemTemplate>
            <p class="auto-style8">
                标题：<asp:Label ID="labTitle" runat="server" Text='<%#Bind("标题") %>' />
                <br />
                发布时间：<asp:Label ID="labTitle0" runat="server" Text='<%# Bind("时间") %>' />
                <br />
                内容：<asp:Label ID="Label1" runat="server" Text='<%# Bind("内容") %>'></asp:Label>
                <br />
                <asp:Image ID="Image2" runat="server" ImageUrl='<%#Bind("图片") %>' />
            </p>
        </ItemTemplate>
    </asp:FormView>
</asp:Content>


